<template>
  <div class="bg-[#acd]">
    <el-button type="primary" @click="pushHome">UserInfo</el-button>
  </div>
</template>

<script>
import {mapMutations,mapGetters} from 'vuex'
export default {
  computed: {
    ...mapGetters('user',['userId']),
  },
  data() {
    return {
      property: 'value',
    };
  },
  methods: {
    ...mapMutations('user',['updateUserInfo']),
    saveUserInfo() {
      let userInfo = {
        name: '张三',
        age: 18,
        id: 10086
      }
      this.updateUserInfo(userInfo)
    },
    pushHome() {
      this.$router.push({
        path: '/home'
      })
    },
  
  },
  
}
</script>

<style lang="scss" scoped>

</style>